<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>List Pendaftar Sidang</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->        							
			<div id="table-content">
				<!--  start product-table ..................................................................................... -->
                                <script>
                                    function validateListPendaftar(){
                                        if (document.listPendaftarSidang.jenisSidang.value=="0"){
                                            alert("Silahkan isi tahapan sidang terlebih dahulu !");
                                            document.listPendaftarSidang.jenisSidang.focus();
                                            return false;
                                        }       
                                    }
                                </script>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                    <form name="listPendaftarSidang" id="mainform" action="SidangTAController?page=listPendaftarSidang" onSubmit="return validateListPendaftar()" method="post">
					<tr>
					  <th width="38" align="left" valign="middle">Tahapan sidang</th>
					  <td width="34" align="center" valign="middle">:</td>
					  <td width="220">
                                          <select name="jenisSidang" class="styledselect_form_1">
                                            <option value="0">-- PILIH JENIS SIDANG --</option>
					    <option value="SIDANG PROPOSAL" <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}" >selected="selected"</c:if> >SIDANG PROPOSAL</option>
					    <option value="SIDANG FINAL" <c:if test="${jenisSidang == 'SIDANG FINAL'}" >selected="selected"</c:if>>SIDANG FINAL</option>
				          </select>
                                          </td>
                                          <td width="0"><input value="" class="form-tampilkan" type="submit" /></td>
					</tr>
                                    </form>
                                 </table>
                                 
                                <c:if test="${pesan == 'sukses'}">
				<!--  start message-green -->
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Perubahan data NRP ${idUser} berhasil dilakukan</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
                                </c:if>
                                
                                <c:if test="${pesan == 'gagal'}">
                                <!--  start message-red -->
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Perubahan data NRP ${idUser} gagal dilakukan</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
                                </c:if>
                                

                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                            <tr>
                                <th width="172" class="table-header-repeat line-left"><a href="">No</a></th>
                                <th width="172" class="table-header-repeat line-left"><a href="">NRP</a></th>
                                <th width="489" class="table-header-repeat line-left"><a href="">Nama</a></th>
                                <th width="195" class="table-header-repeat line-left"><a href="">Lab</a></th>
                                <th width="489" class="table-header-repeat line-left"><a href="">Tahapan sidang</a></th>
                                <th width="222" class="table-header-options line-left"><a href="">Status pendaftaran</a></th>
                                <th width="222" class="table-header-options line-left"><a href="">Detail</a></th>
                            </tr>
                            <% int i = 1; %>                                
                            
                            <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}">
                            <c:if test="${empty listPendaftar}">
                                <tr>
                                    <td colspan="6" align="center" >List pendaftar proposal tidak ditemukan</td>
                                </tr>
                            </c:if>
                            <c:forEach items="${listPendaftar}" var="listPendaftar" >
                            <tr>
                                <td align="center"><%out.print(i);%><%i++;%></td>
                                <td>${listPendaftar.ta.user.idUser}</td>
                                <td>${listPendaftar.ta.user.namaUser}</td>
                                <td>${listPendaftar.ta.namaLab}</td>
                                <td>${jenisSidang}</td>                                        
                                <td>
                                    <c:if test="${listPendaftar.statusDaftarSidang == 'OK'}">
                                    <form action="SidangTAController?page=persetujuanSidang" method="post">
                                        <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="statusDaftarSidang" value="OK"></input>
                                        <input value="" class="form-ok" type="submit"></input>   
                                    </form>
                                    <form action="SidangTAController?page=persetujuanSidang" method="post">
                                        <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="statusDaftarSidang" value="BELUM"></input>
                                        <input value="" class="form-belumDisable" type="submit"></input>   
                                    </form>
                                    </c:if>
                                    <c:if test="${listPendaftar.statusDaftarSidang == 'BELUM'}">
                                    <form id="mainform" action="SidangTAController?page=persetujuanSidang" method="post">
                                    <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                    <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                    <input type="hidden" name="statusDaftarSidang" value="OK"></input>
                                    <input value="" class="form-okDisable" type="submit"></input>   
                                    </form>
                                    <form id="mainform" action="SidangTAController?page=persetujuanSidang" method="post">
                                    <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                    <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                    <input type="hidden" name="statusDaftarSidang" value="BELUM"></input>
                                    <input value="" class="form-belum" type="submit"></input>   
                                    </form>
                                    </c:if>
                                </td>
                                <td class="options-width">
                                <a href="SidangTAController?page=detailPendaftarSidang&&idTA=${listPendaftar.ta.idTA}&&jenisSidang=${jenisSidang}" title="Data TA" class="icon-3 info-tooltip"></a>		
                                <a href="SidangTAController?page=statusTA&&idUser=${listPendaftar.ta.user.idUser}" title="Info TA" class="icon-1 info-tooltip"></a>
                                </td>
                                </tr>
                                </c:forEach>
                                </c:if>
                                <c:if test="${jenisSidang == 'SIDANG FINAL'}">
                                <c:if test="${empty listPendaftar}">
                                <tr>
                                    <td colspan="6" align="center" >List pendaftar final tidak ditemukan</td>
                                </tr>
                                </c:if>
                                <c:forEach items="${listPendaftar}" var="listPendaftar" >
                                <tr>
                                <td align="center"><%out.print(i);%><%i++;%></td>
                                <td>${listPendaftar.ta.user.idUser}</td>
                                <td>${listPendaftar.ta.user.namaUser}</td>
                                <td>${listPendaftar.ta.namaLab}</td>
                                <td>${jenisSidang}</td>                                        
                                <td>
                                    <c:if test="${listPendaftar.statusDaftarSidang == 'OK'}">
                                    <form action="SidangTAController?page=persetujuanSidang" method="post">
                                        <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="statusDaftarSidang" value="OK"></input>
                                        <input value="" class="form-ok" type="submit"></input>   
                                    </form>
                                    <form action="SidangTAController?page=persetujuanSidang" method="post">
                                        <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="statusDaftarSidang" value="BELUM"></input>
                                        <input value="" class="form-belumDisable" type="submit"></input>   
                                    </form>
                                    </c:if>
                                    <c:if test="${listPendaftar.statusDaftarSidang == 'BELUM'}">
                                    <form id="mainform" action="SidangTAController?page=persetujuanSidang" method="post">
                                    <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                    <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                    <input type="hidden" name="statusDaftarSidang" value="OK"></input>
                                    <input value="" class="form-okDisable" type="submit"></input>   
                                    </form>
                                    <form id="mainform" action="SidangTAController?page=persetujuanSidang" method="post">
                                    <input type="hidden" name="idSidang" value="${listPendaftar.idSidang}"></input>
                                    <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                    <input type="hidden" name="statusDaftarSidang" value="BELUM"></input>
                                    <input value="" class="form-belum" type="submit"></input>   
                                    </form>
                                    </c:if>
                                </td>
                                <td class="options-width">
                                <a href="SidangTAController?page=detailPendaftarSidang&&idTA=${listPendaftar.ta.idTA}&&jenisSidang=${jenisSidang}" title="Data TA" class="icon-3 info-tooltip"></a>		
                                <a href="SidangTAController?page=statusTA&&idUser=${listPendaftar.ta.user.idUser}" title="Info TA" class="icon-1 info-tooltip"></a>
                                </td>
                                </tr>
                                </c:forEach>
                                </c:if>
                                
                                
                                                                  
				</table>
				<!--  end product-table................................... --> 
			</div>
			<!--  end content-table  -->
			<!--  start paging..................................................... -->
                        <!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>